package com.greenold.system.mapper;

import com.greenold.system.domain.WxChatCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxChatCustomerMapper {
    /**
     * 新增客户
     */
    int insertWxChatCustomer(WxChatCustomer customer);

    /**
     * 根据ID更新客户
     */
    int updateWxChatCustomer(WxChatCustomer customer);

    /**
     * 根据ID删除客户
     */
    int deleteWxChatCustomerById(@Param("id") Long id);

    /**
     * 批量删除客户
     */
    int deleteWxChatCustomerByIds(@Param("ids") List<Long> ids);

    /**
     * 根据ID查询客户
     */
    WxChatCustomer selectWxChatCustomerById(@Param("id") Long id);
    /**
     * 查询客户列表
     */
    List<WxChatCustomer> selectWxChatCustomerList(WxChatCustomer customer);

    WxChatCustomer selectWxChatCustomerByUserId(@Param("userId") String userId);
    List<Integer> selectElderIdsById( Integer id);
}
